<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- 图标引入 -->
    <link rel="shortcut icon" href="favicon.ico" />
    <title>大事件项目 登录</title>
    <!-- 引入类Ui.css 文件 -->
    <link rel="stylesheet" href="/assets/lib/layui/css/layui.css">
    <!-- 引入当前页面的css 我们的样式有可能层叠掉类ui的样式-->
    <link rel="stylesheet" href="/assets/css/login.css">
</head>

<body>
    <!-- 类ui的版心公共类 -->
    <header class="layui-main header">
        <!--顶部log  -->
        <img src="/assets/images/logo.png" alt="">
    </header>

    <!-- 注册和登录区域 -->
    <div class="login-register">
        <!-- 标题 -->
        <div class="title-box">
        </div>
        <!--登录区域  -->
        <div id="loginBox" data-id=0>
            <!-- 登录的form表单 -->
            <form class="layui-form" id="formLogin" action="">
                <!-- 1.用户名模块 -->
                <div class="layui-form-item ">
                    <i class="layui-icon layui-icon-username"></i>
                    <input type="text" name="username" required lay-verify="required|username" placeholder="请输入账号"
                        autocomplete="off" class="layui-input">
                </div>
                <!-- 2.密码模块 -->
                <div class="layui-form-item pwd">
                    <label for=""></label>
                    <i class="layui-icon layui-icon-password"></i>
                    <input type="text" name="password" required lay-verify="required|pwd" placeholder="请输入密码"
                        autocomplete="off" class="layui-input">
                </div>

                <div class="layui-form-item">
                    <!-- 注意2 默认值为submit 不能设置为button  -->
                    <button class="layui-btn" lay-submit>登录</button>
                </div>

                <div class="layui-form-item">


                    <a href="javascript:;">去注册</a>
                </div>
            </form>

        </div>
        <!-- 注册区域 -->
        <div id="regBox" style="display: none;" data-id=1>
            <!-- 注册的form表单 -->
            <form class="layui-form" id="formReg" action="">
                <!-- 1.用户名模块 -->
                <div class="layui-form-item ">
                    <i class="layui-icon layui-icon-username"></i>
                    <input type="text" name="username" required lay-verify="required|username" placeholder="请输入账号"
                        autocomplete="off" class="layui-input">
                </div>
                <!-- 2.密码模块 -->
                <div class="layui-form-item pwd">
                    <label for=""></label>
                    <i class="layui-icon layui-icon-password"></i>
                    <input type="text" name="password" required lay-verify="required|pwd" placeholder="请输入密码"
                        autocomplete="off" class="layui-input">
                </div>

                <!-- 2.密码再确认模块 -->
                <div class="layui-form-item pwd">
                    <label for=""></label>
                    <i class="layui-icon layui-icon-password"></i>
                    <!-- 密码再确认 不能再取password 会导致后边的ajax每反应 -->
                    <input type="text" name="repassword" required lay-verify="required|rpwd" placeholder="请再次输入密码"
                        autocomplete="off" class="layui-input">
                </div>

                <div class="layui-form-item">
                    <!-- 注意2 默认值为submit 不能设置为button  -->
                    <button class="layui-btn" lay-submit>注册</button>
                </div>

                <div class="layui-form-item">
                    <a href="javascript:;">去登录</a>
                </div>
            </form>
        </div>
    </div>
    <!-- 引入axios.js -->
    <script src="/assets/lib/dist/axios.min.js"></script>
    <!-- 引入公共路径 要放到到axios之后 自己的js前面 -->
    <script src="/assets/js/commit.js"></script>
    <!-- 导入layui.all.js -->
    <script src="/assets/lib/layui/layui.all.js"></script>
    <!-- 引入jq.js文件-->
    <script src="/assets/lib/jquery.js"></script>
    <!-- 引入本页面的js 文件 -->
    <script src="/assets/js/login.js"></script>
</body>

</html>